<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function printMilk() {
	              var clock = document.getElementById("clock");            // 출력할 장소 선택
	              var now = new Date();                                                  // 현재시간
	              var nowTime = now.setMinutes()*20;
	              clock.innerHTML = 200000-nowTime;           // 현재시간을 출력
	              setTimeout("printMilk()",1000);         // setTimeout(“실행할함수”,시간) 시간은1초의 경우 1000
	}
	window.onload = function() {                     // 페이지가 로딩되면 실행
		printMilk();
	}
</script>
</head>
<body>
현재 <span id="clock"></span> 입니다<br />
<table border="1">
	<tr>
		<td>10</td>
		<td>20</td>
		<td>30</td>
		<td>40</td>
		<td>50</td>
		<td>60</td>
		<td>70</td>
		<td>80</td>
		<td>90</td>
		<td>100</td>
	</tr>
</table>
</body>
</html>